<?php

namespace app\controller;

use support\Request;
use Tinywan\Jwt\JwtToken;

class AuthController extends ApiBaseController
{

    public $noNeedLogin=['login'];

    function login(Request $request){
        $token=JwtToken::generateToken(['user_id'=>1]);
        return $this->success($token);
    }

    function info(Request $request){

    }
}